package com.example.safeassistan.risk.model;

import java.util.List;

public class DepartListModel {


    /**
     * success : true
     * message : 操作成功！
     * code : 200
     * result : [{"key":"87c17549523d41108c87bd03b128a761","title":"测试工厂"},{"key":"d4650b8fc1224307b9a04a685dc02426","title":"厂房一"}]
     * timestamp : 1618803335346
     */

    private Boolean success;
    private String message;
    private Integer code;
    private Long timestamp;
    private List<ResultDTO> result;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public static class ResultDTO {
        /**
         * key : 87c17549523d41108c87bd03b128a761
         * title : 测试工厂
         */

        private String key;
        private String title;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }
}
